package net;

import java.awt.Point;
import java.io.Serializable;
import java.util.Vector;

import main.GameDef;
import visual.Board;
import visual.FrameHandler;
import visual.Piece;

public class Message implements Serializable, GameDef{
	private static final long serialVersionUID = -9106478715964172372L;
	public static int eventType;
	public static Piece piece;
	public static int pieceType;
	public static Point castlePos;
	public static boolean canPutCastle;
	public static boolean canPutPiece;
	public static boolean hasToPutPieceVertical;
	public static boolean canBuyPiece;
	public static boolean canAttack;
	public static boolean isPlayerTurn;
		
	public Message(String message, Vector attributes){
		if(message.equals(DIALOG_BUY_STRINGS[DIALOG_BUY_PAY])){
			pieceType = FrameHandler.piecesNames.indexOf(attributes.get(0));
		} else if(message.equals("putPiece")){
			piece = Board.tempPiece;
		} else if(message.equals(DIALOG_ATTACK_STRINGS[DIALOG_ATTACK_ATTACK])){
			
		} else if(message.equals("Reparar")){
			
		} else if(message.equals("Finalizar turno")){
			
		}
	}
	
}
